package cn.itcast.hotel.controller;

import cn.itcast.hotel.pojo.PageResult;
import cn.itcast.hotel.pojo.RequestParams;
import cn.itcast.hotel.service.impl.HotelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("hotel")
public class HotelController {

    @Autowired
    HotelService service;

    @PostMapping("list")
    public PageResult list (@RequestBody RequestParams param){
        System.err.println("标签查询");
        return  service.list(param);
    }

//    @PostMapping("filters")
//    public PageResult filters(@RequestBody RequestParams param){
//        return service.filters(param);
//    }
}
